<template>
	<view class="">
		<view class="time">
			{{time}}s
		</view>
		<view class="txt">
			
			<text>支付成功!</text>
			<text>我们会抓紧发货，请耐心等待</text>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				time:3
			}
		},
		onLoad() {
			var self=this;
			//设置倒计时
			var timer=setInterval(function(){
				self.time--;
			},1000)
			
			// 设置定时器跳转
			setTimeout(function(){
				clearInterval(timer);
				uni.switchTab({
					url: '/pages/member/member'
				})
			},3000);
			
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	.txt{text-align: center;display: flex;flex-direction: column;height: 600rpx;justify-content: center;width:100%}
	.txt text{color:#3CC51F;font-size: $uni-font-size-lg + 8upx;font-weight: bold;}
	.time{
		border-radius: 20px;
		width:60rpx;
		height:26rpx;
		text-align: center;
		line-height: 26rpx;
		color: #555555;
		border:solid 1px #555555;
		float: right;
		margin: 50rpx 20px 0 0;
		font-size: 28rpx;
		align-self: flex-end;
		}
</style>
